package com.developmentReformProject.utils;
/**
 * 分页工具类
 * @author 胡志鹏
 * @date 2021-7-13
 */

import java.util.List;

public class PageUtil <T>{
    /**
     * 总记录数
     */
    private int total;
    /**
     * 数据
     */
    private List<T> data;
    /**
     * 当前页
     */
    private Integer currentPage;
    /**
     * 页面大小
     */
    private Integer pageSize;


    public PageUtil(int total, List<T> data, Integer currentPage, Integer pageSize) {
        super();
        this.total = total;
        this.data = data;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }
    public void setTotal(int total) {
        this.total = total;
    }
    public List<T> getData() {
        return data;
    }
    public void setData(List<T> data) {
        this.data = data;
    }
    public Integer getCurrentPage() {
        return currentPage;
    }
    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
